/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.mldn.demo;

/**
 *
 * @author Administrator
 */
class Demo2 {

    {
        System.out.println("1/generate");
    }

    static {
        System.out.println("0/generate");
    }

    public Demo2() {
        System.out.println("2/generate");
    }
}

public class CodeDemo2 {

    static {
        System.out.println("main class static blocks");
    }

    public static void main(String[] args) {
        new Demo2();
        new Demo2();
        new Demo2();
    }
}
